diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-10-24 10:11:31 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-10-24 10:11:31 +0700 |
| commit | 5f0f6b865bafd1570b24b8caffdb992ffbb476fc (patch) | |
| tree | cb10cb24f45823c118155bff5f30490691aa0b42 /src/pages/shop/product/variant/[slug].jsx | |
| parent | f073b22e917acde22c21808906a37270e274085f (diff) | |
| parent | ca30c28dd0b19977eb771fc32ff5e520cdef1068 (diff) | |
Merge branch 'CR/product_detail' into Feature/penawaran-instan
Diffstat (limited to 'src/pages/shop/product/variant/[slug].jsx')
| -rw-r--r-- | src/pages/shop/product/variant/[slug].jsx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/pages/shop/product/variant/[slug].jsx b/src/pages/shop/product/variant/[slug].jsx index 42f38774..2c0dd64b 100644 --- a/src/pages/shop/product/variant/[slug].jsx +++ b/src/pages/shop/product/variant/[slug].jsx @@ -32,16 +32,9 @@ export async function getServerSideProps(context) { tier ); let product = response.data; - // let product = await variantApi({ id: getIdFromSlug(slug), headers: { Token: authToken } }) if (product?.length == 1) { product = product[0]; - /* const regexHtmlTags = /(<([^>]+)>)/gi - const regexHtmlTagsExceptP = /<\/?(?!p\b)[^>]*>/g - product.description = product.description - .replace(regexHtmlTagsExceptP, ' ') - .replace(regexHtmlTags, ' ') - .trim()*/ } else { product = null; } |
